package com.xiaoyung.easyisapisdk.common.auth.response;

import java.util.Map;

import com.xiaoyung.easyisapisdk.common.base.BaseApiResponse;

//import io.swagger.annotations.ApiModelProperty;

public class TokenInfoResponse extends BaseApiResponse{
	private static final long serialVersionUID = 1L;
	
	//@ApiModelProperty(value = "accessToken")
	private String accessToken;
	
	//@ApiModelProperty(value = "过期时间(秒)")
	private Integer expiresIn;

	public TokenInfoResponse() {
		
	}
	
	public TokenInfoResponse(Map<String, Object> tokenInfo) {
		this.accessToken = (String) tokenInfo.get("accessToken");
		this.expiresIn = (Integer) tokenInfo.get("expiresIn");
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Integer getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(Integer expiresIn) {
		this.expiresIn = expiresIn;
	}


}

